import { createRouter, createWebHashHistory } from 'vue-router'
import TodoListView from '../views/TodoListView.vue'
import TaskListView from '../views/TaskListView.vue'
import StudentTaskView from '@/views/StudentTaskView.vue'
import HomePage from '@/views/HomePage.vue'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomePage
    },
    {
      path: '/todoList',
      name: 'todoList',
      component: TodoListView
    },
    {
      path: '/tasks',
      name: 'taskList',
      component: TaskListView
    },
    {
      path: '/studentTask',
      name: 'studentTask',
      component: StudentTaskView
    },
    {
      path: '/pc/tasks',
      name: 'PCTaskList',
      component: TaskListView
    },
    {
      path: '/student-tasks',
      name: 'StudentTaskList',
      component: StudentTaskView
    }
  ]
})

export default router